package edu.purdue.cs.ds;

import java.io.*;
import java.net.*;

public class ConnectionHandler {

	private String host;
	private int index;
	private Socket socket;
	private DataInputStream dis;
	private DataOutputStream dos;
	private ObjectInputStream ois;
	private ObjectOutputStream oos;
	
	public ConnectionHandler(String h, int indexp, Socket s, DataInputStream disp,
							DataOutputStream dosp, ObjectInputStream oisp,
							ObjectOutputStream oosp){
		
		host = h;
		index = indexp;
		socket = s;
		dis = disp;
		dos = dosp;
		ois = oisp;
		oos = oosp;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public Socket getSocket() {
		return socket;
	}

	public void setSocket(Socket socket) {
		this.socket = socket;
	}

	public DataInputStream getDis() {
		return dis;
	}

	public void setDis(DataInputStream dis) {
		this.dis = dis;
	}

	public DataOutputStream getDos() {
		return dos;
	}

	public void setDos(DataOutputStream dos) {
		this.dos = dos;
	}

	public ObjectInputStream getOis() {
		return ois;
	}

	public void setOis(ObjectInputStream ois) {
		this.ois = ois;
	}

	public ObjectOutputStream getOos() {
		return oos;
	}

	public void setOos(ObjectOutputStream oos) {
		this.oos = oos;
	}
	
	public int getIndex(){
		return index;
	}
	
	public void setIndex(int i){
		index = i;
	}
}
